<!--
 * @Author: daidai
 * @Date: 2022-03-01 09:16:22
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-09-29 15:12:34
 * @FilePath: \web-pc\src\pages\big-screen\components\item-wrap\item-wrap.vue
-->
<template>
  <dv-border-box-7
    class="lr_titles"
    :color="color"
    :backgroundColor="backgroundColor"
  >
    <div class="item-title" v-if="title !== ''">
      <!-- <div class="zuo"></div> -->
      <div class="title-inner">
        {{ title }}
      </div>
      <div class="you"></div>
    </div>
    <div
      :class="title !== '' ? 'item_title_content' : 'item_title_content_def'"
    >
      <slot></slot>
    </div>
  </dv-border-box-7>
</template>

<script>
export default {
  data() {
    return {
      // color: ["#0a5c91", "#082b5a"],
      // color: ['#139DEC', '#0a5c91'],
      color: ['rgba(10, 92, 145, 0.2)', 'rgba(115, 225, 255, 0.3)'],
      backgroundColor: 'rgba(7, 28, 69, 0.8)',
    };
  },
  props: {
    title: {
      type: String,
      default: () => '',
    },
    reverse: {
      type: Boolean,
      default: () => false,
    },
  },
  created() {},

  mounted() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
$item-title-height: 38px;
$item_title_content-height: calc(100% - 38px);

.lr_titles {
  box-sizing: border-box;
  margin: 0 10px;
  pointer-events: auto;

  :deep(.border-box-content) {
    box-sizing: border-box;
    padding: 6px 16px 0px;
  }

  .item-title {
    height: $item-title-height + 4px;
    line-height: $item-title-height;
    width: 100%;
    color: #31abe3;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    // .zuo,
    // .you {
    //   width: 100%;
    //   height: 9px;
    //   background: url('../../assets/img/launch/avator/box_title.png') no-repeat center;
    //   background-position: center center;
    //   background-size: 62px 9px;
    // }

    .title-inner {
      font-size: 20px;
      line-height: 28px;
      font-weight: 600;
      // letter-spacing: 2px;
      color: #fff;
      // margin-bottom: -4px;
      width: 100%;
      &::before {
        content: '|  ';
        font-size: 22px;
        color: #2369ea;
      }
    }
  }

  .item_title_content {
    height: $item_title_content-height;
  }

  .item_title_content_def {
    width: 100%;
    height: 100%;
  }
}
</style>
